package com.stylefeng.guns.modular.bus.service.impl;

import com.stylefeng.guns.modular.system.model.Banner;
import com.stylefeng.guns.modular.system.dao.BannerMapper;
import com.stylefeng.guns.modular.bus.service.IBannerService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author junz123
 * @since 2018-04-18
 */
@Service
public class BannerServiceImpl extends ServiceImpl<BannerMapper, Banner> implements IBannerService {
    @Resource
    private BannerMapper bannerMapper;
    @Override
    public List<Banner> getBannerList4ComId(Map map) {
        return bannerMapper.getBannerList4ComId(map);
    }

    @Override
    public Banner getBannerInfo(String id) {
        return bannerMapper.getBannerInfo(id);
    }

    @Override
    public List<Banner> getBannerList4PrdNo(String prdNo) {
        return bannerMapper.getBannerList4PrdNo(prdNo);
    }
}
